<template>
    <div class="login-container pull-height" @keyup.enter.native="handleLogin">
        <!--<div class="login_header">
            <div class="header_contain">
                <span class="header_logo">工装设备管理系统</span>
                <span class="header_welcome">欢迎您，请登录</span>
            </div>
        </div>-->
        <div class="login-info text-white animated fadeInLeft">
            <!--<div class="logo" style="margin-top:-10%;margin-left: 22%">
                <img src="../../assets/images/pic/logo.png" alt="logo" style="vertical-align: middle;width: 53%;" />
            </div>
            <div style="margin-left: 18%;margin-top:2px;font: caption;font-family: serif; letter-spacing: 3px;" >
                <span style="color: #1f80e4;font-size: 33px;font-weight: bold">工装设备管理系统</span>
            </div>
            <div class="logo" style="margin-top:20%">
                <img src="../../assets/images/pic/company.jpg" alt="logo" style="vertical-align: middle;" />
            </div>-->
        </div>
        <div class="login-border animated fadeInRight">
            <div class="login-main">
            	<div class="logo" style="text-align: center;">
	                <img src="../../assets/images/pic/logo.png" alt="logo" style="width: 54%;height: 45px;" />
	            </div>
                <div class="login-title">{{systemName}}</div>
                <!--<el-tabs v-model="activeName">-->
                <!--<el-tab-pane label="用户密码" name="user  ">-->
                <!--<userLogin></userLogin>-->
                <!--</el-tab-pane>-->
                <!--<el-tab-pane label="短信验证码" name="code">-->
                <!--<codeLogin></codeLogin>-->
                <!--</el-tab-pane>-->
                <!--</el-tabs>-->
                <userLogin></userLogin>
            </div>
        </div>
    </div>
</template>
<script>
import userLogin from "./userlogin";
import codeLogin from "./codelogin";
import { setOtherToken } from "@/utils/auth"; // 验权

export default {
    name: "login",
    components: {
        userLogin,
        codeLogin
    },
    data() {
        return {
            activeName: "user",
            systemName: "工装设备管理系统"
        };
    },
    mounted() {},
    props: [],
    methods: {}
};
</script>

<style lang="scss">
.login-container {
    background: url('../../assets/images/bg_login.jpg');
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    height: 100%;

    .login_header {
        line-height: 70px;
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        position: fixed;
        top: 0;
        width: 100%;
        .header_contain {
            width: 1200px;
            margin: 0 auto;
            .header_logo {
                font-size: 20px;
            }
            .header_welcome {
                float: right;
                font-size: 14px;
            }
        }
    }
}

.login-container::before {
    z-index: -999;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.login-info {
    padding-left: 60px;
}

.login-info-title {
    line-height: 90px;
}

.login-info-item {
    font-size: 14px;
}

.login-border {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    width: 400px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px #555;
}

.login-main {
    border-radius: 3px;
    box-sizing: border-box;
}

.login-main > h3 {
    margin-bottom: 20px;
}

.login-main > p {
    color: #76838f;
}

.login-title {
    margin: 10px 0 40px;
    text-align: center;
    letter-spacing: 3px;
    font-size: 20px;
}

.login-submit {
    margin-top: 20px;
    width: 100%;
    height: 45px;
    font-size: 14px;
    // border-radius: 28px;
}

.login-form {
    margin: 10px 0;

    .el-form-item__content {
        // width: 270px;
    }

    .el-form-item {
        margin-bottom: 12px;
    }

    .el-input {
        input {
            text-indent: 5px;
            border-color: #dcdcdc;
            border-radius: 3px;
        }

        .el-input__prefix {
            top: 9px;
            i {
                padding: 0 5px;
                font-size: 16px !important;
            }
        }
    }
}

.login-code {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 0 0 10px;
}

.login-code-img {
    margin-top: 2px;
    width: 100px;
    height: 32px;
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 32px;
    text-indent: 5px;
    text-align: center;
}
</style>
